php remove newline

46

php remove newline -

//Replace the newline and carriage return characters
//using regex and preg_replace.
$text = preg_replace("/\r|\n/", "", $text);

string remove line breaks php -

preg_replace( "/\r|\n/", "", $yourString );

php remove \t and \n -

$str = preg_replace('/(\v|\s)+/', ' ', $str);

Comments

Submit
0 Comments